"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const mes_1 = __importDefault(require("./mes"));
const config_1 = __importDefault(require("../../config"));
const router = express_1.default.Router();
router.use((req, res, next) => {
    res.setTimeout(config_1.default.timeout, () => {
        return res.status(503).send(mes_1.default.failed('服务器请求超时！'));
    });
    next();
});
exports.default = router;
